<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>

	<!--引入jquery-->
	<script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
	<!--引入bootsrap-->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css"/>
	<script src="${pageContext.request.contextPath}/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/user/index.css"/>
	
	
	
</head>
<body>

	<nav >
	  	<div id="list">
			<ul>
				<li class="li1">
					<c:if test="${empty user }">
			      	<li class="li1"><a href="${pageContext.request.contextPath }/UserServlet?action=loginUi">你好，请登录</a></li>
			        <li class="li1"><a href="${pageContext.request.contextPath }/UserServlet?action=registUi">注册</a></li>
		      		</c:if>
		      		<c:if test="${not empty user }">
		      		<h5 style="color:white">欢迎${user.pname }</h5>
		      		<li class="li1"><a href="${pageContext.request.contextPath }/UserServlet?action=logout">退出登录</a></li>
		      	</c:if>
				
				</li>
				
				
				
				<li class="spacer"></li>
				<li>
					<div>
						&nbsp;&nbsp;<a>我的订单</a>&nbsp;&nbsp;
					</div>
				</li>
				<li class="spacer"></li>
				<li>
					<div>
						&nbsp;&nbsp;<a>国内酒店</a>&nbsp;&nbsp;
					</div>
				</li>
				<li class="spacer"></li>
				<li>	
					<div>
						&nbsp;&nbsp;<a>海外酒店</a>&nbsp;&nbsp;
					</div>
				</li>
				<li class="spacer"></li>
				<li>	
					<div>
						&nbsp;&nbsp;<a>旗下品牌</a>&nbsp;&nbsp;
					</div>
				</li>
				<li class="spacer"></li>
				<li>	
					<div>
						&nbsp;&nbsp;<a>客服服务</a>&nbsp;&nbsp;
					</div>
				</li>
			</ul>
		</div>
    	
    	<div id="check">
    		<div id="small">
    			<form class="navbar-form navbar-left" method="post"
					action="${pageContext.request.contextPath }/HotelinServlet?action=queryByArea">
		        	<div class="form-group">
		          		<input type="text" class="check" name="harea" placeholder="城市"><button type="submit" class="btn check-one">查找</button>
		        	</div>
		        	
		      	</form>
		      	
		      	<form class="navbar-form navbar-left" method="post"
					action="${pageContext.request.contextPath }/HotelinServlet?action=queryByName">
		        	<div class="form-group">
		          		<input type="text" class="check" name="hname" placeholder="关键字"><button type="submit" class="btn check-one">搜索</button>
		        	</div>
		      	</form>
    		</div>
    	</div>
    	
    	
	</nav>

</body>
</html>